home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / plnk081.zip / pilot-link.0.8.1 / libsock / Makefile < prev    next >
Makefile  |  1997-08-09  |  7KB  |  161 lines

  1. # Generated automatically from Makefile.in by configure.
  2.  
  3. O = lo
  4.  
  5. SOCKOBJS = socket.$(O) serial.$(O) inetserial.$(O) slp.$(O) padp.$(O) \
  6.        dlp.$(O) cmp.$(O) syspkt.$(O) inet.$(O)
  7.  
  8. FILEOBJS = pi-file.$(O)
  9.  
  10. APPOBJS = datebook.$(O) memo.$(O) address.$(O) todo.$(O) expense.$(O) mail.$(O) sync.$(O) appinfo.$(O)
  11.  
  12. UTILOBJS = utils.$(O)
  13.  
  14. SERIAL = unixserial.$(O)
  15.  
  16. OBJS = $(SOCKOBJS) $(FILEOBJS) $(APPOBJS) $(UTILOBJS) $(SERIAL)
  17.  
  18. prefix = /usr/pilot
  19. exec_prefix = ${prefix}
  20. libdir = ${exec_prefix}/lib
  21. srcdir = .
  22.  
  23. top_builddir = ..
  24.  
  25. CC = gcc
  26. CFLAGS = -I../include -I$(srcdir)/../include -g -O2 -Wall
  27. # -DPADP_TRACE
  28. # -DDEBUG
  29. # -DNO_DLP_TRACE
  30. # -DNO_SERIAL_TRACE
  31. AR = ar
  32. ARFLAGS = cur
  33. RANLIB = ranlib
  34. RM = rm -f
  35. LIBTOOL = $(top_builddir)/libtool
  36.  
  37. .SUFFIXES: .c .lo .o
  38.  
  39. .c.o:
  40.     $(CC) $(CFLAGS) -c $<
  41.  
  42. .c.lo:
  43.     $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c $<
  44.  
  45. all: libpisock.la
  46.  
  47. libpisock.a: $(OBJS)
  48.     $(RM) libpisock.a
  49.     $(AR) $(ARFLAGS) libpisock.a $(OBJS)
  50.     $(RANLIB) libpisock.a
  51.  
  52. libpisock.la: $(OBJS)
  53.     $(LIBTOOL) --mode=link $(CC) $(CFLAGS) \
  54.         -export-dynamic -rpath $(libdir) -version-info 2:0:0 \
  55.         -o libpisock.la $(OBJS)
  56.  
  57. # OS/2 dll build rules,  This is somewhat of a hack.
  58. # This target creates the OS/2 linker .def file dynanmically.
  59. # Creates the import library libpisockdll.a from the .def file.
  60. # Links the converted libpisock.lib into a DLL using the generated .def file.
  61. # Copies libpisock.dll up one directory level so that the executables can 
  62. #    find it when they are run.
  63. # Converts libpisock.a into an OMF (Native) library.
  64. # Then it cleans up.
  65. # NOTE: You will need the OS/2 Linker, link386.exe, for this to work.
  66. libpisockdll.a: libpisock.a
  67.     echo ; AUTOMATICALLY GENERATED FROM Makefile.os2  DO NOT EDIT >pisock.def
  68.     echo ; pisock.dll module definition file >>pisock.def
  69.     echo LIBRARY pisock >>pisock.def
  70.     echo DESCRIPTION >>pisock.def
  71.     echo  'Pilot-link socket interface DLL' >>pisock.def
  72.     echo CODE PRELOAD >>pisock.def
  73.     echo EXPORTS >>pisock.def
  74.     emxexp -o libpisock.a >>pisock.def
  75.     emxomf libpisock.a
  76.     gcc -Zdll -Zcrtdll -Zmt -Zomf pisock.def libpisock.lib -lsocket.lib
  77.     emximp -o libpisockdll.a pisock.def
  78.     cp pisock.dll ../
  79.     $(RM) libpisock.def libpisock.lib
  80.  
  81.  
  82. clean:
  83.     $(RM) *.o *.lo *.a *.la core a.out *.orig
  84.     $(RM) -r .libs
  85.  
  86. depend:
  87.     perl -i~ -ne 'print if 1../^#Depend/' Makefile.in ; gcc -w -MM -I../include *.c | perl -pne 's/^(\S*)\.o/$$& $$1.lo/g' >> Makefile.in
  88.  
  89. #Dependencies
  90. address.o address.lo: address.c ../include/pi-source.h ../include/pi-config.h \
  91.  ../include/pi-socket.h ../include/pi-args.h ../include/pi-macros.h \
  92.  ../include/pi-dlp.h ../include/pi-address.h ../include/pi-appinfo.h
  93. appinfo.o appinfo.lo: appinfo.c ../include/pi-source.h ../include/pi-config.h \
  94.  ../include/pi-socket.h ../include/pi-args.h ../include/pi-macros.h \
  95.  ../include/pi-dlp.h ../include/pi-appinfo.h
  96. cmp.o cmp.lo: cmp.c ../include/pi-source.h ../include/pi-config.h \
  97.  ../include/pi-socket.h ../include/pi-args.h ../include/pi-macros.h \
  98.  ../include/pi-padp.h ../include/pi-cmp.h ../include/pi-serial.h
  99. datebook.o datebook.lo: datebook.c ../include/pi-source.h ../include/pi-config.h \
  100.  ../include/pi-socket.h ../include/pi-args.h ../include/pi-macros.h \
  101.  ../include/pi-dlp.h ../include/pi-datebook.h ../include/pi-appinfo.h
  102. dlp.o dlp.lo: dlp.c ../include/pi-source.h ../include/pi-config.h \
  103.  ../include/pi-socket.h ../include/pi-args.h ../include/pi-macros.h \
  104.  ../include/pi-dlp.h ../include/pi-syspkt.h
  105. expense.o expense.lo: expense.c ../include/pi-source.h ../include/pi-config.h \
  106.  ../include/pi-socket.h ../include/pi-args.h ../include/pi-macros.h \
  107.  ../include/pi-dlp.h ../include/pi-expense.h ../include/pi-appinfo.h
  108. inet.o inet.lo: inet.c ../include/pi-source.h ../include/pi-config.h \
  109.  ../include/pi-socket.h ../include/pi-args.h ../include/pi-macros.h \
  110.  ../include/pi-inet.h ../include/pi-slp.h ../include/pi-syspkt.h \
  111.  ../include/pi-padp.h ../include/pi-dlp.h
  112. inetserial.o inetserial.lo: inetserial.c ../include/pi-source.h \
  113.  ../include/pi-config.h ../include/pi-socket.h ../include/pi-args.h \
  114.  ../include/pi-macros.h ../include/pi-serial.h \
  115.  ../include/pi-inetserial.h ../include/pi-slp.h ../include/pi-syspkt.h \
  116.  ../include/pi-padp.h
  117. mail.o mail.lo: mail.c ../include/pi-source.h ../include/pi-config.h \
  118.  ../include/pi-socket.h ../include/pi-args.h ../include/pi-macros.h \
  119.  ../include/pi-dlp.h ../include/pi-mail.h ../include/pi-appinfo.h
  120. memo.o memo.lo: memo.c ../include/pi-source.h ../include/pi-config.h \
  121.  ../include/pi-socket.h ../include/pi-args.h ../include/pi-macros.h \
  122.  ../include/pi-dlp.h ../include/pi-memo.h ../include/pi-appinfo.h
  123. os2serial.o os2serial.lo: os2serial.c ../include/pi-source.h ../include/pi-config.h \
  124.  ../include/pi-socket.h ../include/pi-args.h ../include/pi-macros.h \
  125.  ../include/pi-serial.h ../include/pi-slp.h ../include/pi-syspkt.h \
  126.  ../include/pi-padp.h
  127. padp.o padp.lo: padp.c ../include/pi-source.h ../include/pi-config.h \
  128.  ../include/pi-socket.h ../include/pi-args.h ../include/pi-macros.h \
  129.  ../include/pi-padp.h ../include/pi-slp.h ../include/pi-serial.h
  130. pi-file.o pi-file.lo: pi-file.c ../include/pi-source.h ../include/pi-config.h \
  131.  ../include/pi-socket.h ../include/pi-args.h ../include/pi-macros.h \
  132.  ../include/pi-file.h ../include/pi-dlp.h
  133. serial.o serial.lo: serial.c ../include/pi-source.h ../include/pi-config.h \
  134.  ../include/pi-socket.h ../include/pi-args.h ../include/pi-macros.h \
  135.  ../include/pi-serial.h ../include/pi-inetserial.h \
  136.  ../include/pi-padp.h ../include/pi-cmp.h ../include/pi-dlp.h \
  137.  ../include/pi-syspkt.h
  138. slp.o slp.lo: slp.c ../include/pi-source.h ../include/pi-config.h \
  139.  ../include/pi-socket.h ../include/pi-args.h ../include/pi-macros.h \
  140.  ../include/pi-slp.h
  141. socket.o socket.lo: socket.c ../include/pi-source.h ../include/pi-config.h \
  142.  ../include/pi-socket.h ../include/pi-args.h ../include/pi-macros.h \
  143.  ../include/pi-serial.h ../include/pi-inetserial.h \
  144.  ../include/pi-inet.h ../include/pi-padp.h ../include/pi-cmp.h \
  145.  ../include/pi-dlp.h ../include/pi-syspkt.h
  146. sync.o sync.lo: sync.c ../include/pi-source.h ../include/pi-config.h \
  147.  ../include/pi-socket.h ../include/pi-args.h ../include/pi-macros.h \
  148.  ../include/pi-dlp.h ../include/pi-sync.h
  149. syspkt.o syspkt.lo: syspkt.c ../include/pi-source.h ../include/pi-config.h \
  150.  ../include/pi-socket.h ../include/pi-args.h ../include/pi-macros.h \
  151.  ../include/pi-syspkt.h ../include/pi-slp.h ../include/pi-serial.h
  152. todo.o todo.lo: todo.c ../include/pi-source.h ../include/pi-config.h \
  153.  ../include/pi-socket.h ../include/pi-args.h ../include/pi-macros.h \
  154.  ../include/pi-dlp.h ../include/pi-todo.h ../include/pi-appinfo.h
  155. unixserial.o unixserial.lo: unixserial.c ../include/pi-source.h \
  156.  ../include/pi-config.h ../include/pi-socket.h ../include/pi-args.h \
  157.  ../include/pi-macros.h ../include/pi-serial.h ../include/pi-slp.h \
  158.  ../include/pi-syspkt.h ../include/pi-padp.h
  159. utils.o utils.lo: utils.c ../include/pi-source.h ../include/pi-config.h \
  160.  ../include/pi-socket.h ../include/pi-args.h ../include/pi-macros.h
  161.